package org.xt.entity;

import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.PK;
import org.nutz.dao.entity.annotation.Table;

/**
 * 用户角色表
 * @author XiangTao
 *
 */
@Table("tb_user_role")
@PK({"userId", "roleId"})
public class UserRole extends BaseTable{
	@Column
	private int userId;
	@Column
	private int roleId;
	
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public int getRoleId() {
		return roleId;
	}
	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}
	@Override
	public String toString() {
		return "UserRole [userId=" + userId + ", roleid=" + roleId + "]";
	}
}
